package com.java.tutorials.jdk7.paths;

import com.java.tutorials.Constants;

import java.nio.file.Path;
import java.nio.file.Paths;

/**
 * Created by xuzhike on 2016/1/27.
 * http://www.java2s.com/Code/Java/JDK-7/Combiningpathsusingpathresolution.htm
 * Combining paths using path resolution
 */
public class Combiningpathsusingpathresolution {
    public static void main(String[] args) {
        Path rootPath = Paths.get(Constants.TEST_PATH);
        Path partialPath = Paths.get("test30.txt");
        Path resolvedPath = rootPath.resolve(partialPath);
        System.out.println("done=="+resolvedPath);

    }
}
